package com.ruoyi.system.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 归档恢复任务对象 archive_recover_task
 *
 * @author ruoyi
 * @date 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("archive_recover_task")
public class ArchiveRecoverTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 任务名称
     */
    private String name;
    /**
     * 归档结果id
     */
    private Long resultId;
    /**
     * 恢复类型：1覆盖
     */
    private Integer recoveryType;
    /**
     * 执行状态：0：执行中、1：成功、2：失败
     */
    private Integer executeStatus;

    /**
     * 恢复表名
     */
    private String tableName;

    private String resultName;

    /**
     * 执行日志
     */
    private String message;

    private Date startTime;
    private Date endTime;

    @TableField(exist = false)
    private ArchiveTask archiveTask;
    @TableField(exist = false)
    private ArchiveResult archiveResult;
    @TableField(exist = false)
    private ArchiveStrategy archiveStrategy;
    @TableField(exist = false)
    private ArchiveLocation archiveLocation;
}
